.m-message {
    padding: 10px 15px;
    overflow-y: scroll;
    height: calc(100vh - 95px);
}

.m-message li {
    margin-bottom: 15px;
}

.time {
    margin: 7px 0;
    text-align: center;
}

.time>span {
    display: inline-block;
    padding: 0 18px;
    font-size: 12px;
    color: #fff;
    border-radius: 2px;
    background-color: #dcdcdc;
}

.m-message .avatar {
    float: left;
    margin: 0 10px 0 0;
    border-radius: 3px;
}

.m-message .text {
    display: inline-block;
    position: relative;
    padding: 5px;
    max-width: calc(100% - 40px);
    min-height: 30px;
    line-height: 20px;
    font-size: 20px;
    text-align: left;
    word-break: break-all;
    background-color: #fafafa;
    border-radius: 4px;
    box-sizing: border-box;
}

.m-message .text:before {
    content: " ";
    position: absolute;
    top: 9px;
    right: 100%;
    border: 6px solid transparent;
    border-right-color: #fafafa;
}

.self {
    text-align: right;
}

.self .avatar {
    float: right;
    margin: 0 0 0 10px;
}

.self .text {
    background-color: #b2e281;
}

.self .text:before {
    right: inherit;
    left: 100%;
    border-right-color: transparent;
    border-left-color: #b2e281;
}

.m-text {
    height: 160px;
    border-top: solid 1px #ddd;
}

.m-text textarea {
    padding: 10px;
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    font-family: "微软雅黑";
    resize: none;
}

.chatBox-send {
    width: 100%;
    padding: 8px 5px;
    background: #eee;
    border-top: 1px #D0D0D0 solid;
    position: fixed;
    bottom: 0;
    left: 0;
}

.div-textarea {
    min-height: 20px;
    max-height: 100px;
    padding: 3px;
    outline: 0;
    float: left;
    background: #fff;
    font-size: 14px;
    line-height: 20px;
    word-wrap: break-word;
    overflow-x: hidden;
    overflow-y: auto;
    border: thin solid gray;

    -webkit-user-modify: read-write-plaintext-only;
    -moz-user-modify: read-write-plaintext-only;
}

.div-textarea:focus {
    box-shadow: 0 0 15px rgba(82, 168, 236, 0.6);
}


.chat-message img {
    width: 220px;
    height: auto;
}

.button_input {
    height: 24px;
    margin-top: 3px;
    border-radius: 5px;
    border: none;
    color: #fff;
    text-align: center;
    background-color: #40b9e3;
    width: 15%;
    margin-left: 1%;
}

.btn-default-styles {
    width: 9%;
    float: left;
    margin-left: 1%;
    height: 32px;
}

img.avatar {
    width: 30px;
    height: 30px;
}

.text img,
.text video {
    max-width: 100%;
    max-height: 120px;
}